package com.forekonw.deomlianxi;

import java.util.Scanner;

public class Testth {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入成绩： ");
        int chengji = input.nextInt();
        switch (chengji/10){
            case 10:
                System.out.println("成绩为A");
                break;
            case 9:
                System.out.println("成绩为A");
                break;
            case 8:
                System.out.println("成绩为B");
                break;
            case 7:
                System.out.println("成绩为C");
                break;
            case 6:
                System.out.println("成绩为D");
                break;
            default:
                System.out.println("成绩为E");
                break;
//        double chengji = input.nextDouble();
        }
//        if (chengji >=90 && chengji<= 100){
//            //a
//            System.out.println("你的成绩是A");
//        }else if (chengji >= 80){
//            //b
//            System.out.println("你的成绩是B");
//        }else if (chengji >= 70){
//            //c
//            System.out.println("你的成绩是C");
//        }else if (chengji >= 60){
//            //d
//            System.out.println("你的成绩是D");
//        }else{
//            //e
//            System.out.println("你的成绩是E");
//        }
    }
}
